package com.un.ebs.sys.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * (FunctionTable)表实体类
 *
 * @author liubo
 * @since 2021-01-11 16:04:18
 */
@Data
@Component
@TableName("sys_function_table")
@SuppressWarnings("serial")
public class FunctionTable extends Model<FunctionTable> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;

    @DbField(name = "fun_id", length = 40, precision = 0)
    private String funId;

    @DbField(name = "table_id", length = 40, precision = 0)
    private String tableId;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}